home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / turlwin6.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.1 KB  |  36 lines

  1. //    Copyright (c) 1993, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TURLWindow
  4. //    Include File:    turlwind.h
  5. //    Purpose:    Provide a window for a URL
  6. //    Remarks/Portability/Dependencies/Restrictions:
  7. //    Revision History:
  8. //        12-27-93    created
  9. //        02-09-94    Split all members into seperate files.
  10. #define Uses_TProgram
  11. #include"turlwind.h"
  12.  
  13. void TURLWindow::OwnerClose()    {
  14. //    Purpose:    Pass a message to have the window closed.
  15. //    Arguments:    void
  16. //    Return Value:    void
  17. //    Remarks/Portability/Dependencies/Restrictions:
  18. //        Should only be done when view inside window is not valid.
  19. //    Revision History:
  20. //        01-30-94    created
  21. //        03-31-94    A problem arises becuase the application
  22. //                closes this window with no wait and then
  23. //                the return of the closing code has no where
  24. //                to actually return to since the window
  25. //                has in effect been closed.
  26. //                Look for a fix in TDosLynx::handleEvent.
  27.  
  28.     TEvent TE_close;
  29.  
  30.     //    Construct the event and send.
  31.     TE_close.what = evCommand;
  32.     TE_close.message.command = cmOwnerClose;
  33.     TE_close.message.infoPtr = (void *)this;
  34.     TProgram::application->putEvent(TE_close);
  35. }
  36.